package com.example.appcomedores;

import com.example.appcomedoresproject.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class MainActivity extends Activity implements OnClickListener {

    
    Button btnIniciar,btnBuscar,btnAcercade;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        
        btnIniciar=(Button)findViewById(R.id.btnIniciar);
        btnBuscar=(Button)findViewById(R.id.btnBuscar);
        btnAcercade=(Button)findViewById(R.id.btnAcercade);

        btnIniciar.setOnClickListener(this);
        btnBuscar.setOnClickListener(this);
        btnAcercade.setOnClickListener(this);
      
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    @Override
    public void onClick(View arg0){
        switch(arg0.getId()){
            case R.id.btnIniciar:
                Intent int1= new Intent("com.example.appcomedores.Login");
                startActivity(int1);
                break;
            case R.id.btnBuscar:
            	Intent int2= new Intent("com.example.appcomedores.Local");
                startActivity(int2);
                break;
            case R.id.btnAcercade:
            	Intent int3= new Intent("com.example.appcomedores.Acercade");
                startActivity(int3);                
                break;
        }
    }

}
